import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
// 自适应库
import "amfe-flexible";
// 重制dom 默认元素
import '@/assets/style/common.css'
import '@/assets/style/reset.css'
// 引入cesium 的css样式
import "cesium/Widgets/widgets.css"
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.min.css'
// 引入图片查看
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
// 使用请求
import request from "./api/index"
// 引入cesium库
import * as Cesium from "cesium/Cesium.js"
// 引入echart
import * as echarts from 'echarts';

Vue.prototype.$echarts = echarts
window.Cesium = Cesium
Vue.use(Viewer)
Viewer.setDefaults({
  Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
})
Vue.use(VueAwesomeSwiper/* { default options with global component } */)
Vue.prototype.$http = request
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
